.box3 {
    width: 100px;
    height: 100px;
    background-color: hotpink;
    background-image: url(../images/3.gif);
    background-size: cover;
}